package com.fanxl.securityfive.bean;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @author fanxl12
 * @description
 * @date 2019/11/25 16:30
 */
@Data
public class MyUser extends User {

    private int id;

    public MyUser(int id, String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.id = id;
    }
}
